package com.nut.mapper;

import com.nut.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ author : HyoJoo-W
 * @ createDate : 2021-04-15 15:26
 */
public interface UserMapper
{
    //查询所有User
    public List<User> findAll();

    //添加User
    public void add(User user);

    //根据name查询User
    public User queryUserByName(String name);

    //根据id查询User
    User queryUserById(int number);

    //修改User
    void update(User user);

    //根据id删除User
    void delete(int number);

    //批量删除User
    void batchDelete(@Param("list")List<Integer> numbers);

    //根据name,password查询User
    User query(User user);

}
